package com.example.springbootmqdemocustumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * Classname: FanoutSmsConsumer
 * Description:
 *
 * @Author: Jam
 * @Create 2022/11/28 - 19:40
 * @Version 1.0
 */
@Service
//@RabbitListener(queues = {"sms.direct.queue"})
public class DirectSmsConsumer {
//    @RabbitHandler
    public void messagerevice(String message){
        // 此处省略发邮件的逻辑
        System.out.println("Sms direct 收到了消息：-------------->" + message);
    }
}
